<?php
    include './base.php';
    $sql = "select * from orders";
    $res = mysql_query($sql);

    $arr = array();
    while($row = mysql_fetch_assoc($res)){
        array_push($arr,$row);
    }
    print_r(json_encode($arr));

    // if(!$row){
    //     print_r("登陆失败");
    // }else{
    //     print_r("登陆成功";)
    // }
?>